<?php
	ob_start();
	session_start();
	include './data/cn.php';
		$result = DataProvider::ExecuteQuery($cnh);
		while($host = mysql_fetch_array($result))
		{
		$result1 = DataProvider::ExecuteQuery($cnmd);
		while($div = mysql_fetch_array($result1))
		{
			
		include $div["md_link"].'header.php';
		echo'
		<div style="'.$div4px.'"></div>
		<div style="'.$div80top.'" align="center">
		<div style="width:960px;" align="right">
		<OBJECT>
		<embed src="'.$div["md_sty"].'banner.swf" width="560" height="80" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer";
		type="application/x-shockwave-flash" menu="false" wmode="transparent"></embed>
		</OBJECT>
		</div></div>
		<div style="width:100%; height:23px;">
		';
		include $div["md_link"].'top.div.time.php';
		echo '
		</div>
		<div style="'.$div4pxa.'"></div>
		<div align="center" id="container">
			<div class="sidebar1">';
		include $div["md_link"].'leftmain.php';
		echo'
			</div>
			<div class="content">
			';
		 switch ($_GET["typ"]) {
			case "user":
				include $div["md_link"].'user/user.php';
				break;
			case "admin":
				include $div["md_link"].'admin/admin.php';
				break;
			case "product":
				include $div["md_link"].'product/product.php';
				break;
			default:
				echo '
	<meta http-equiv="refresh" content="5; url='.$host["l_link"].'" />
				Module này chưa được tạo!';
		}
		echo '
			</div>
			<div class="sidebar2">';
		include $div["md_link"].'rightmain.php';
		echo'
			</div>
		</div>
		<div style="'.$div4pxbt.'">
		</div>
		';
		include $div["md_link"].'footer.php';
		}
		}
?>